﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;

namespace nwrole.toolbox.mailservice.clienttestconsole
{
    class Program
    {
        static void Main(string[] args)
        {
            MailMessage msg = new MailMessage();
            msg.To.Add(new MailAddress("chanan.eli@evry.com"));
            msg.From = new MailAddress("chanan.eli@telia.com");
            msg.Subject = "Testing";
            msg.Body = "Just doing some testing";

            MailServiceClient client = new MailServiceClient("DefaultEndpointsProtocol=http;AccountName=evrymail;AccountKey=BYsXpJgK2fOczIZfpTig9FfYKU27LZXJGIaNgcNwcb/Do25Erl9/PnQuOFu5Nt9L9T1vByJGhmHfqg7QDgmdBQ==", "email", "generic");
            client.SendMessage(msg);
        }
    }
}
